package com.project.util;

import com.google.common.hash.BloomFilter;
import com.google.common.hash.Funnels;

import java.nio.charset.Charset;

public class CacheUtil {

    public final static int CacheTime=60*3;
    public final static int CacheTimeMin=60;
    public final static int CacheTimeMax=60*10;
    public static BloomFilter bloomFilter;

    static {
        bloomFilter = BloomFilter.create(Funnels.stringFunnel(Charset.defaultCharset()), 1000000, 0.001);
        bloomFilter.put("测试电影2");
        bloomFilter.put("测试电影1");
        bloomFilter.put("0");
        bloomFilter.put("1");
    }
}
